package gob.pe.inei.esvit.ebl.entity.adm;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class ADMMVariable implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Basic(optional = true)
	@Column(name = "nCodIdeVar", nullable = false)
	private Integer nCodIdeVar;
	@Basic(optional = false)
	@Column(name = "cCodigoApp", nullable = false, length = 3)
	private String cCodigoApp;
	@Basic(optional = false)
	@Column(name = "cNombreVar", nullable = false, length = 11)
	private String cNombreVar;
	@Basic(optional = false)
	@Column(name = "cValuesVar", nullable = false, length = 50)
	private String cValuesVar;
	@Basic(optional = false)
	@Column(name = "cDescriVar", nullable = false, length = 50)
	private String cDescriVar;
	@Basic(optional = false)
	@Column(name = "cTipValvar", nullable = false)
	private char cTipValVar;
	@Basic(optional = false)
	@Column(name = "nLonValVar", nullable = false)
	private int nLonValVar;
	@Basic(optional = false)
	@Column(name = "nPerAplVar", nullable = false)
	private int nPerAplVar;
	@Basic(optional = false)
	@Column(name = "nUsuRegVar", nullable = false)
	private int nUsuRegVar;
	@Basic(optional = false)
	@Column(name = "dFecRegVar", nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date dFecRegVar;
	@Column(name = "nUsuModVar")
	private Integer nUsuModVar;
	@Column(name = "dFecModVar")
	@Temporal(TemporalType.TIMESTAMP)
	private Date dFecModVar;
	@Column(name = "cCodEstado", nullable = false)
	private Boolean cCodEstado;

	/**
	 * @return the nCodIdeVar
	 */
	public Integer getnCodIdeVar() {
		return nCodIdeVar;
	}

	/**
	 * @param nCodIdeVar
	 *            the nCodIdeVar to set
	 */
	public void setnCodIdeVar(Integer nCodIdeVar) {
		this.nCodIdeVar = nCodIdeVar;
	}

	/**
	 * @return the cCodigoApp
	 */
	public String getcCodigoApp() {
		return cCodigoApp;
	}

	/**
	 * @param cCodigoApp
	 *            the cCodigoApp to set
	 */
	public void setcCodigoApp(String cCodigoApp) {
		this.cCodigoApp = cCodigoApp;
	}

	/**
	 * @return the cNombreVar
	 */
	public String getcNombreVar() {
		return cNombreVar;
	}

	/**
	 * @param cNombreVar
	 *            the cNombreVar to set
	 */
	public void setcNombreVar(String cNombreVar) {
		this.cNombreVar = cNombreVar;
	}

	/**
	 * @return the cValuesVar
	 */
	public String getcValuesVar() {
		return cValuesVar;
	}

	/**
	 * @param cValuesVar
	 *            the cValuesVar to set
	 */
	public void setcValuesVar(String cValuesVar) {
		this.cValuesVar = cValuesVar;
	}

	/**
	 * @return the cDescriVar
	 */
	public String getcDescriVar() {
		return cDescriVar;
	}

	/**
	 * @param cDescriVar
	 *            the cDescriVar to set
	 */
	public void setcDescriVar(String cDescriVar) {
		this.cDescriVar = cDescriVar;
	}

	/**
	 * @return the cTipValvar
	 */
	public char getcTipValVar() {
		return cTipValVar;
	}

	/**
	 * @param cTipValvar
	 *            the cTipValvar to set
	 */
	public void setcTipValVar(char cTipValVar) {
		this.cTipValVar = cTipValVar;
	}

	/**
	 * @return the nLonValVar
	 */
	public int getnLonValVar() {
		return nLonValVar;
	}

	/**
	 * @param nLonValVar
	 *            the nLonValVar to set
	 */
	public void setnLonValVar(int nLonValVar) {
		this.nLonValVar = nLonValVar;
	}

	/**
	 * @return the nPerAplVar
	 */
	public int getnPerAplVar() {
		return nPerAplVar;
	}

	/**
	 * @param nPerAplVar
	 *            the nPerAplVar to set
	 */
	public void setnPerAplVar(int nPerAplVar) {
		this.nPerAplVar = nPerAplVar;
	}

	/**
	 * @return the nUsuRegVar
	 */
	public int getnUsuRegVar() {
		return nUsuRegVar;
	}

	/**
	 * @param nUsuRegVar
	 *            the nUsuRegVar to set
	 */
	public void setnUsuRegVar(int nUsuRegVar) {
		this.nUsuRegVar = nUsuRegVar;
	}

	/**
	 * @return the dFecRegVar
	 */
	public Date getdFecRegVar() {
		return dFecRegVar;
	}

	/**
	 * @param dFecRegVar
	 *            the dFecRegVar to set
	 */
	public void setdFecRegVar(Date dFecRegVar) {
		this.dFecRegVar = dFecRegVar;
	}

	/**
	 * @return the nUsuModVar
	 */
	public Integer getnUsuModVar() {
		return nUsuModVar;
	}

	/**
	 * @param nUsuModVar
	 *            the nUsuModVar to set
	 */
	public void setnUsuModVar(Integer nUsuModVar) {
		this.nUsuModVar = nUsuModVar;
	}

	/**
	 * @return the dFecModVar
	 */
	public Date getdFecModVar() {
		return dFecModVar;
	}

	/**
	 * @param dFecModVar
	 *            the dFecModVar to set
	 */
	public void setdFecModVar(Date dFecModVar) {
		this.dFecModVar = dFecModVar;
	}

	/**
	 * @return the cCodEstado
	 */
	public Boolean iscCodEstado() {
		return cCodEstado;
	}

	/**
	 * @param cCodEstado
	 *            the cCodEstado to set
	 */
	public void setcCodEstado(Boolean cCodEstado) {
		this.cCodEstado = cCodEstado;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ADMMVariable [nCodIdeVar=" + nCodIdeVar + ", cCodigoApp="
				+ cCodigoApp + ", cNombreVar=" + cNombreVar + ", cValuesVar="
				+ cValuesVar + ", cDescriVar=" + cDescriVar + ", cTipValVar="
				+ cTipValVar + ", nLonValVar=" + nLonValVar + ", nPerAplVar="
				+ nPerAplVar + ", nUsuRegVar=" + nUsuRegVar + ", dFecRegVar="
				+ dFecRegVar + ", nUsuModVar=" + nUsuModVar + ", dFecModVar="
				+ dFecModVar + ", cCodEstado=" + cCodEstado + "]";
	}
}
